package com.jiangjiang.eshop.auth.convert;

import com.jiangjiang.eshop.auth.domain.AccountPriorityRelationshipEntity;
import com.jiangjiang.eshop.auth.dto.AccountPriorityRelationshipDTO;
import org.mapstruct.Mapper;

import java.util.Collection;
import java.util.List;

@Mapper(componentModel = "spring")
public interface AccountPriorityRelationShipConvert {

    List<AccountPriorityRelationshipDTO> convertEntity2DTO(List<AccountPriorityRelationshipEntity> queryPriorityRelationsByAccountId);

    List<AccountPriorityRelationshipEntity> convertDTO2Entity(List<AccountPriorityRelationshipDTO> priorityRelations);
}
